#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

void shl(vector<int> &v){
        int size=v.size();
    swap(v[0],v[size-1]);
    auto temp=v[0];
    for(int i=1;i<size;i++){
        v[i-1]=v[i];
    }
    v[size-1]=temp;
}

auto show(vector<int> v){
        for(auto var: v){
        cout<< var <<" ";
    }
    cout<<endl;
}
int main(void){

    vector<int> v={1,2,3,4,5};
    shl(v);
    show(v);
    shl(v);
    show(v);

    return 0;
}